package com.example.dmdomain.entity;

import lombok.Data;
import org.springframework.data.jpa.domain.support.AuditingEntityListener;

import javax.persistence.*;
import java.util.Date;

@Data
@Entity
@EntityListeners(AuditingEntityListener.class)
@Table(name = "system_chat_context")
public class SystemChatContext {
    @Id
    @Column(name = "id")
    private String id;

    /**
     * 会话id
     */
    @Column(name = "session_id")
    private String sessionId;
    /**
     * 请求id
     */
    @Column(name = "request_id")
    private String requestId;
    /**
     * 会话时间
     */
    @Column(name = "session_time")
    private Date sessionTime;
    /**
     * 用户内容
     */
    @Column(name = "use_content")
    private String sueContent;
    /**
     * 系统内容
     */
    @Column(name = "sys_content")
    private String sysContent;
    /**
     * 文件id
     */
    @Column(name = "file_id")
    private String fileIid;
}
